package com.music.pojo;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

public class Album {
    private Integer alid;

    private String aname;

    private Integer sid;

    private String desc;

    private Date publishTime;

    private String pic;

    private List<SingleSong> songs;

    private Singer singer;

    private List<Category> categorys;

    private String publishTimeStr;

    private Integer ablumFavoriteStatus;

    public Integer getAlid() {
        return alid;
    }

    public void setAlid(Integer alid) {
        this.alid = alid;
    }

    public String getAname() {
        return aname;
    }

    public void setAname(String aname) {
        this.aname = aname;
    }

    public Integer getSid() {
        return sid;
    }

    public void setSid(Integer sid) {
        this.sid = sid;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc == null ? null : desc.trim();
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic == null ? null : pic.trim();
    }

    public List<SingleSong> getSongs() {
        return songs;
    }

    public void setSings(List<SingleSong> songs) {
        this.songs = songs;
    }

    public Singer getSinger() {
        return singer;
    }

    public void setSinger(Singer singer) {
        this.singer = singer;
    }

    public List<Category> getCategorys() {
        return categorys;
    }

    public void setCategorys(List<Category> categorys) {
        this.categorys = categorys;
    }

    public String getPublishTimeStr() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
        return this.publishTime==null?"":sdf.format(this.publishTime);
    }

    public void setSongs(List<SingleSong> songs) {
        this.songs = songs;
    }

    public Integer getAblumFavoriteStatus() {
        return ablumFavoriteStatus==null?0:ablumFavoriteStatus;
    }

    public void setAblumFavoriteStatus(Integer ablumFavoriteStatus) {
        this.ablumFavoriteStatus = ablumFavoriteStatus;
    }
}